package com.chargerlink.echarger.task;


import com.chargerlink.echarger.service.PoiService;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;


/**
 * Created by fansxnet on 17-5-2.
 */
@Component
public class PullSchedul {


    @Autowired
    PoiService poiService;

    @PostConstruct
    public void init() {

    }

    @Scheduled(cron = "0/1 * *  * * ? ")
    public void set() {
        //poiService.set();
    }

    @Scheduled(cron = "0/5 * *  * * ? ")
    public void get() {
        //poiService.get();
    }
}
